<div class="message <?=((++$j)%2==0)?'light':'dark'?>">
    <?
    $p = $i->sender;
    include 'apps/profile/template/mini.html';
    ?>
    <div class="messageInfo">
        <a class="senderName" href="/profile/<?=$i->sender->ID?>" title="<?=$i->sender->name?>"><?=$i->sender->name?></a>
        <span class="messageDate"><?=common::date($i->date)?></span>
    </div>
    <p class="messageContent"><?=nl2br($i->message)?></p>
    <div class="clear"></div>
</div>